package 第十六章_注解;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Arrays;

@MyAnnotation(name="如果在注解上添加这句话，会覆盖自定义注解类的默认值")

public class Cat {
    private String name;
    private int age;
    private String[] info;

    private Color_enum color_enum ;

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", info=" + Arrays.toString(info) +
                ", color_enum=" + color_enum +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Color_enum getColor_enum() {
        return color_enum;
    }

    public void setColor_enum(Color_enum color_enum) {
        this.color_enum = color_enum;
    }

    public String[] getInfo() {
        return info;
    }

    public void setInfo(String[] info) {
        this.info = info;
    }

    public Cat() {
    }

    public Cat(String name, int age, String[] info) {
        this.name = name;
        this.age = age;
        this.info = info;
    }
}
